<!DOCTYPE html>
<html
  layout:decorator="components/layout"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
>
<head>
  <title>工单指令管理</title>
</head>
<body>
<div
  layout:fragment="content"
  class="container"
>
  <!--引入边框角-->
  <div id="app" v-cloak>
    <div class="container">
      <div class="myHeader">
        <div class="myHeader-title">
          修改工单指令信息
        </div>
      </div>
      <table
        width="100%"
        border="0"
        class="el-table el-table--border"
        cellspacing="0"
        cellpadding="0"
      >
        <tbody>
        <tr>
          <td>经营者ID<span style="color:red">*</span></td>
          <td>
            <el-select v-model="formData.idcId" name="idcId" v-validate="'required'">
              <el-option v-for="oper in opers" :value="oper.idcId" :key="oper.idcId" :label="oper.operName"></el-option>
            </el-select>
            <span class="field-error msg" v-show="errors.has('idcId')">请选择经营者</span>
          </td>
        </tr>
        <tr>
          <td>指令类型<span style="color:red">*</span></td>
          <td>
            <el-radio-group name="insType" v-validate="'required'" v-model="formData.insType">
              <el-radio label="1">下发工单</el-radio>
              <el-radio label="2">上报文件</el-radio>
              <el-radio label="3">反馈回执</el-radio>
            </el-radio-group>
            <span class="field-error msg" v-show="errors.has('insType')"> {{ errors.first('insType') }}</span>

          </td>
        </tr>
        <tr>
          <td>工单类型<span style="color:red">*</span></td>
          <td>
            <el-radio-group name="orderType" v-validate="'required'" v-model="formData.orderType">
              <el-radio label="1">工单</el-radio>
              <el-radio label="2">通知</el-radio>
              <el-radio label="3">文件</el-radio>
              <el-radio label="4">反馈</el-radio>
            </el-radio-group>
            <span class="field-error msg" v-show="errors.has('orderType')"> {{ errors.first('orderType') }}</span>
          </td>
        </tr>
        <tr>
          <td>工单状态<span style="color:red">*</span></td>
          <td>
            <el-radio-group name="orderStatus" v-validate="'required'" v-model="formData.orderStatus">
              <el-radio label="1">下发</el-radio>
              <el-radio label="2">已阅知</el-radio>
              <el-radio label="3">处理完成</el-radio>
              <el-radio label="4">不予处理</el-radio>
              <el-radio label="5">延期处理</el-radio>
              <el-radio label="6">正在处理</el-radio>
            </el-radio-group>
            <span class="field-error msg" v-show="errors.has('orderStatus')"> {{ errors.first('orderStatus') }}</span>
          </td>
        </tr>
        <tr>
          <td>文档名称<span style="color:red">*</span></td>
          <td>
            <el-input
              v-validate="'required|max:80'"
              name="docName"
              v-model="formData.docName"
              maxlength="80"
              show-word-limit
            ></el-input>
            <span class="field-error msg" v-show="errors.has('docName:required')">请填写文档名称</span>
            <span class="field-error msg" v-show="errors.has('docName:max')">文档名称最大长度为 80 位</span>
          </td>
        </tr>
        <tr>
          <td>文档内容</td>
          <td>
            <el-input
              v-model="formData.docContent"
              v-validate="'max:30000'"
              name="docContent"
              type="textarea"
            ></el-input>
            <span class="field-error msg" v-show="errors.has('docContent')">{{ errors.first('docContent') }}</span>
          </td>
        </tr>
        <tr>
          <td>截止期限</td>
          <td>
            <el-date-picker name="expiredTime"
                            v-model="formData.expiredTime"
                            type="datetime"
                            placeholder="请选择截止期限">
            </el-date-picker>
          </td>
        </tr>
        </tbody>
      </table>
      <div align="center">
        <el-button
          type="primary"
          @click="submitForm"
        >
          确认
        </el-button>
        <el-button
          @click="_forward('/command-manage/admin_filenotify')"
        >返回</el-button>
      </div>
    </div>
  </div>
</div>
<div layout:fragment="js">
  <script src="/static/js/module/basic-data/api/baseOperCompanyApi.js"></script>
  <script src="/static/js/module/command-manage/api/insWorkOrderApi.js"></script>
  <script src="/static/js/module/command-manage/modify/admin_filenotify_modify.js"></script>
</div>
</body>
</html>
